package cn.ylz.ylmall.content.service;

import cn.ylz.ylmall.account.security.CurrentPrincipal;
import cn.ylz.ylmall.common.web.JsonResult;
import cn.ylz.ylmall.content.pojo.param.LikeAddNewParam;
import cn.ylz.ylmall.content.pojo.vo.CountVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface ILikeService {

    JsonResult addNew(CurrentPrincipal currentPrincipal, LikeAddNewParam likeAddNewParam);

    CountVO count(Long contentId);

    Boolean selectIsLike(Long id, Long contentId);
}
